<ion-view view-title="二手租赁">
	<!--一定要手动加导航栏-->
	<ion-nav-bar>
		<ion-nav-back-button>
		</ion-nav-back-button>
	</ion-nav-bar>
	<!--通过副标题来定位-->
	<div class="bar bar-subheader bar-toper">
		<div class="row classify">
			<div class="col" on-tap="activeTab(0)" ng-class="selectTab==0?'top-activated':''">
				二手产品
			</div>
			<div class="col" on-tap="activeTab(1)" ng-class="selectTab==1?'top-activated':''">
				租赁产品
			</div>
		</div>
	</div>
	
	<!-- 侧边菜单 -->
	<ion-side-menus>
		<!-- 中间内容 -->
		<ion-side-menu-content>
			<!--描述：滑动块-->
			<ion-content scroll="false" class="has-header has-subheader service">
					<div class="item padding-0" id="orderBar">
						<div class="row text-center padding-0 font-middle-my">
							<div class="col" on-tap="doSearch(1)" ng-class="{'assertive':orderby==1}">
								默认排序
							</div>
							<div class="col" on-tap="doSearch(4)" ng-class="{'assertive':orderby==4||orderby==5}">
								价格&nbsp;
								<i class="icon ion-ios-arrow-up paixu_top" ng-class="{'font-gray-my':orderby==4}"></i>
								<i class="icon ion-ios-arrow-down paixu_bottom" ng-class="{'font-gray-my':orderby==5}"></i>
							</div>
							<div class="col" on-tap="rightSideMenu()">
								筛选<i class="iconfont icon-shaixuan"></i>
							</div>
						</div>
					</div>
					
					<div class="font-large-my font-gray-my text-center padding" ng-if="firstHide&&(datas.data==null||datas.data.length==0)">
						<i class="icon ion-sad-outline font-1rem-my"></i> 对不起，没有符合条件的数据.....
					</div>
					
					<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
						<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
						<div class="secondhand_product" ng-repeat="data in datas.data">
							<div style="width: 100%;height: 7rem;">
								<img src="{{data.image?data.image:noImg}}" ng-if="data.image" style="width: 100%;max-height: 7rem;" on-tap="onShow_detail(data.goods_id)" />
							</div>
							<p class="padding-left-5-my ellipsis-2" style="height: 40px;">{{data.name}}</p>
							<p class="secondhand_product_price">
								{{data.price|currency:'¥'}}<span style="text-decoration: line-through;" class="font-gray-my font-small-my right-zhang">{{data.mktprice|currency:'¥'}}</span>
							</p>
							<p class="secondhand_product_phone">联系方式：{{data.phone}}</p>
							<li class="item padding-10">
								<!--
								<button class="button assertive-border button-small font-gray-my" on-tap="onshow_first(data.store_id)"> 
			              	  		<i class="ion ion-home assertive"></i>{{data.store_name}}
								</button>
								-->
								<p ng-click="onshow_first(data.store_id)" style="height: 16px;display: flex;align-items: center;">
									<img src="./img/guilin/other/shop_icon.png" class="left-zhang" style="width: 15px;">
									<span class="font-gray-my left-zhang ng-binding">&nbsp;{{data.store_name}}<i class="icon ion-ios-arrow-right" style="font-size: 11px;padding-left: 5px;"></i></span>
								</p>
							</li>
						</div>
					<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
				</ion-scroll>
			</ion-content>
		</ion-side-menu-content>

		<!--侧边菜单-->
		<ion-side-menu side="right">
			<ion-content class="has-header has-subheader ">
				<ul class="list">
					<li class="item item-input">
						<i class="icon ion-search placeholder-icon"></i><input type="text" placeholder="请输入关键字..." ng-model="input.key">
					</li>
					<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">大分类</div>
							<div class="input-value" ng-click="doSelectCat1()">{{input.cat1.name}}</div>
						</div>
						<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">中分类</div>
							<div class="input-value" ng-click="doSelectCat2()">{{input.cat2.name}}</div>
						</div>
						<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">小分类</div>
							<div class="input-value" ng-click="doSelectCat3()">{{input.cat3.name}}</div>
						</div>

					<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">省份</div>
							<div class="input-value" ng-click="doSelectProvince()">{{input.province.name}}</div>
						</div>
						<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">城市</div>
							<div class="input-value" ng-click="doSelectCity()">{{input.city.name}}</div>
						</div>
						<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
							<div class="input-label">区/县</div>
							<div class="input-value" ng-click="doSelectDistrict()">{{input.district.name}}</div>
						</div>
				</ul>
				<div class="row">
					<div class="col"><button class="button button-full button-energized" on-tap="rightSideMenu()">取消</button></div>
					<div class="col"><button class="button button-full button-assertive" on-tap="doSearch();rightSideMenu()">确定</button></div>
				</div>
			</ion-content>
		</ion-side-menu>

	</ion-side-menus>
</ion-view>